<?php 
use Wdl\helper\webHelper;
?>
 
<div class="panel panel-default">
    <ul class="nav nav-tabs" style="margin-top: 5px; padding-left: 10px;">
  
        <li class="{if (empty($rd) || $rd=='index')}active{/if}">
        <a href="{php echo $this->createWebUrl('sdemand', array('op' => $operation))}"> 
			 {$submenus[$operation]['name']}列表</a></li>
       
    </ul>

    <div class="panel-body table-responsive">
       	 
        <form action="./index.php" method="get" class="form-horizontal" role="form">
            <div class="search-box" style="margin-bottom: 20px; width: 100%; align-items: center; ">          
		
                <div  style="margin-right: 10px;">
                    <span >关键字 :</span>
                </div>
          
				<div class="col-xs-12 col-sm-6 col-lg-6">
                    <input type="hidden" name="c" value="site" />
                    <input type="hidden" name="a" value="entry" />
                    <input type="hidden" name="m" value="kbwdl_shequzufang" />
                    <input type="hidden" name="do" value="sdemand" />
                    <input type="hidden" name="op" value="{$operation}" />
                  
                    <input type="hidden" name="export" value="0" />
            
					<input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}">

				</div>
                 <div class="col-xs-12 col-sm-2 col-lg-2">

					<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>

				</div>
             
        </div>
		</form>
      
        <!-- 搜索结束 -->
        <table class="table table-hover">
			<thead class="navbar-inner">
			 
            <tr>
                <th style="width:5%;">ID</th>
                <th style="width:15%;">客户</th>
                <th >类型</th>	
                <th style="width:25%;">房源信息</th>
                <th >意向价格 </th>
               	 
                <th >处理 </th>
                <th style="text-align:right">操作</th>
            </tr>
                   
			</thead>
			<tbody>
				{loop $list $item}
				<tr>
					<td>{$item['id']}</td>
                    <td>
                        <p>{$item['nickname']}</p>
                        <p>{$item['mobile']}</p>
                    </td>
                    <td>
                        <p> 	 
                         {$submenus[$item['send_type']]['name']}
                        </p>
                    </td>
					<td>
                        <p>                                           
					  <span style="color:red"> {$item['village']}</span>
                     
                        </p>
                        <p> {$item['huxing']}</p>
					</td>
                    <td>
                        {$item['price']}{$item['price_unit']}
                   </td>
					
                   <td>
                    <label data='{$item['isfeed']}' class='label label-default 
                    {if $item['isfeed']==1}label-info{/if}'
                        onclick="setProperty(this,{$item['id']},'isfeed')">
                        {if $item['isfeed']==1} 已处理{else} 待处理{/if}
                    </label>
                   </td>
					

					<td style="text-align:right;">
                         
                        <p style="text-align: right">
                            {if $ftype=='charges'}
                            <a href="{php echo $this->createWebUrl('sdemand', array('actid' => $item['id'] ,'op'=>$operation, ))}"  class="btn btn-default btn-sm" title="记录"> 记录</a>  
                            {/if}
                          
                            <a href="{php echo $this->createWebUrl('sdemand', array('id' => $item['id'] ,'op'=> $operation))}" onclick="return confirm('此操作不可恢复，确认删除？');return false;" class="btn btn-default btn-sm" title="删除"><i class="fa fa-times"></i></a>
                        </p>
					</td>

				</tr>

				{/loop}

			</tbody>

		</table>

		{$pager}
    </div>
</div>